package com.FundamentalDemos.Array;

public class 数组求最值 {
    public static void main(String[] args) {
        //打擂台
        int[] faceScores = new int[]{15, 9000, 10000, 20000, 9500, -5};
        int max = faceScores[0];
        for (int i = 1; i < faceScores.length; i++) {
            if (faceScores[i] > max)
                max = faceScores[i];
        }
        System.out.println("max=" + max);

    }
}
